package com.music.service.music;

import com.music.dto.music.DownloadDTO;
import com.music.dto.utils.TableReqDTO;
import com.music.dto.utils.TableRspDTO;

public interface DownloadService {

    /*
     * @Description 下载信息
     * @Author hbh
     * @Date 2021/11/26
     **/
    TableRspDTO list4Table(Long userId, TableReqDTO tableReqDTO) throws Exception;

    /*
     * @Description 新增下载歌单
     * @Author hbh
     * @Date 2021/11/26
     **/
    Long add(Long userId, DownloadDTO downloadDTO) throws Exception;

    /*
     * @Description 取消下载歌单
     * @Author hbh
     * @Date 2021/12/5
     **/
    Integer update(Long downloadId,Integer status) throws Exception;

    /*
     * @Description 删除下载歌单
     * @Author hbh
     * @Date 2021/12/5
     **/
    Integer remove(String downloadId) throws Exception;


    /*
     * @Description 判断下载失败
     * @Author hbh
     * @Date 2021/12/19
     **/
    Integer judgeFailed() throws Exception;

}
